package cz.worktracker.model.entities;
// Generated 19.4.2010 0:35:56 by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.faces.model.DataModel;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Taskinterval generated by hbm2java
 */
@Entity
@Table(name="taskinterval"
    ,catalog="pis10"
)
public class Taskinterval  implements java.io.Serializable {


     private Integer id;
     private int idTask;
     private Date startTime;
     private Date stopTime;
     private String note;

    public Taskinterval() {
    }

	
    public Taskinterval(int idTask, Date startTime, Date stopTime) {
        this.idTask = idTask;
        this.startTime = startTime;
        this.stopTime = stopTime;
    }
    public Taskinterval(int idTask, Date startTime, Date stopTime, String note) {
       this.idTask = idTask;
       this.startTime = startTime;
       this.stopTime = stopTime;
       this.note = note;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="id_task", nullable=false)
    public int getIdTask() {
        return this.idTask;
    }
    
    public void setIdTask(int idTask) {
        this.idTask = idTask;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="startTime", nullable=false, length=19)
    public Date getStartTime() {
        return this.startTime;
    }
    
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="stopTime", length=19)
    public Date getStopTime() {
        return this.stopTime;
    }
    
    public void setStopTime(Date stopTime) {
        this.stopTime = stopTime;
    }
    
    @Column(name="note")
    public String getNote() {
        return this.note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }


    

}


